package com.xunce.xcworkservice.service;

import com.xunce.xcworkservice.entity.AccountVerify;
import com.xunce.xcworkservice.entity.Department;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xunce.xcworkservice.exception.CustomException;

import java.util.List;
import java.util.Map;

public interface DepartmentService extends IService<Department>{


    Map<Integer, Department> getDepartmentMap();

    Boolean updateAccountDepartment(Integer accountId, List<Integer> departmentIds);

    List<Department> getTreeList();

    boolean edit(Department department);

    List<AccountVerify> getVerifyList();

    boolean verifyDelete(Integer id);

    boolean verifyEdit(AccountVerify accountVerify);

    boolean checkDelete(Integer id) throws CustomException;
}
